<template>
  <div class="login-container">
    <div class="login-main">
      <h1 class="login-title">登录</h1>
      <login-account></login-account>
    </div>
  </div>
</template>

<script>
import LoginAccount from './component/LoginAccount.vue'

export default {
  name: 'login',
  components: {
    LoginAccount,
  },
}
</script>

<style scoped>
a {
  color: #42b983;
}
</style>

<style lang="scss">
.login-container {
  width: 100%;
  height: 100%;
  background: url(https://mj-web-2021.oss-cn-beijing.aliyuncs.com/mj-login/yunying_bg.png?versionId=CAEQDhiBgMDqgb.g1RciIDRiM2NmZGMwYWI0NjQ4Yjk5NzIwNmNhMzk2YTA0MjA4) no-repeat;
  background-size: 100% 100%;
}

.login-title {
  color: #333;
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  letter-spacing: 4px;
  margin: 15px 0 30px;
  white-space: nowrap;
}

.login-main {
  width: 500px;
  padding: 20px 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate3d(0, 0, 0);
  background-color: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 12px 0 #a0cfff;
  border-radius: 4px;
  transition: height 0.2s linear;
  height: 480px;
  overflow: hidden;
  z-index: 1;
}

.login-code {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.login-code-img {
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 5px;
  text-indent: 5px;
  text-align: center;
  cursor: pointer;
  transition: all ease 0.2s;
  border-radius: 4px;
  user-select: none;
}

.login-submit {
  width: 100%;
  letter-spacing: 2px;
  font-weight: 300;
  margin-top: 15px;
}

@media screen and (max-width: 576px) {
  .login-main {
    width: 90%;
    padding: 0 25px;
  }
}
</style>
